﻿@model LotteryVoteMVC.Models.LoginModel
@using LotteryVoteMVC.Resources
@using LotteryVoteMVC.Resources.Login
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title>@Resource.Agent</title>
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.cookie.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Customer/comm.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Customer/ajaxHelper.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Customer/loginBase.js")" type="text/javascript"></script>
    <link href="@Url.Content("~/Content/themes/base/jquery.ui.theme.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/comm.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/login2.css")" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        var refreshVerifyCode = function () {
            $("img").attr("src", "Captcha?ticketer=" + new Date().getTime());
        }
        $(document).ready(function () {
            refreshVerifyCode();
        });
    </script>
</head>
<body>
    <center>
        <div>
            @using (Html.BeginForm())
            {
                <table>
                    <tr>
                        <th colspan="4" style="height: 50px">
                            @Login.AgentWelcomeString
                        </th>
                    </tr>
                    <tr>
                        <td>
                            @Login.UserNameLabel
                        </td>
                        <td>
                            @Html.TextBoxFor(it => it.UserName)
                        </td>
                        <td>
                            @Login.PasswordLabel
                        </td>
                        <td>
                            @Html.PasswordFor(it => it.Password)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            @Login.LanguageLabel
                        </td>
                        <td>
                            @Html.Partial("Language")
                        </td>
                        <td>
                            @Login.VerifyCode
                        </td>
                        <td>
                            @Html.TextBoxFor(it => it.VerifyCode, new { @class = "verifyCode", maxlength = 5 })
                            <span class="vcode">
                                <img onclick="refreshVerifyCode()" />
                            </span>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4" style="height: 40px; text-align: center">
                        </td>
                    </tr>
                </table>
                <pre style="position: relative; top: 250px">
                        <input type="submit" name="submit" class="shadow" id="submit" value="@Login.LoginField" />
                </pre>
            }
        </div>
    </center>
    @Html.Partial("Agreement", LotteryVoteMVC.Models.Role.Agent)
    @Html.Partial("ChangePassword")
</body>
</html>
